using SM.core;
using SS;
using SS.core;
using System;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Windows.Forms;
using TVSGPP.doctor;
using TVSGPP.search;
namespace TVSBH.doctor
{
	public class frmSelectPrescription : Form
	{
		private Func objFunc = new Func();
		public string userName = "";
		public string fullName = "";
		public string currDortorID = "";
		public string currCusID = "0";
		public string currPid = "";
		private customers objCus = new customers();
		private products objProduct = new products();
		private Doctor objDoctor = new Doctor();
		private DataTable objProductTable = new DataTable();
		public bool selected = false;
		private IContainer components = null;
		private GroupBox groupBox3;
		private DataGridView dgvBill;
		private Button btnClose;
		private GroupBox groupBox1;
		private Label label2;
		private Label label1;
		private Label label3;
		private Label label5;
		private Label label6;
		private Label label8;
		private TextBox txtDoctorGuide;
		private Label label9;
		private Button btnAddToBill;
		private ToolTip toolTip1;
		private Label label25;
		private Label label17;
		private Button btnSearchTime;
		private DateTimePicker dtpTo;
		private DateTimePicker dtpFrom;
		private Label label26;
		private Label label19;
		private Label label28;
		private TextBox txtUserGuide;
		private Label label7;
		private Button btnSelect;
		public DataGridView dgvProduct;
		public DateTimePicker txtDate;
		public TextBox txtID;
		public TextBox txtName;
		public ComboBox cbbSex;
		public TextBox txtAddress;
		public TextBox txtPhone;
		public TextBox txtDoctor;
		public TextBox txtDesease;
		public NumericUpDown txtAge;
		private DataGridViewTextBoxColumn billID;
		private DataGridViewTextBoxColumn DateCreate;
		private DataGridViewTextBoxColumn PatientName;
		private DataGridViewTextBoxColumn PatientAge;
		private DataGridViewTextBoxColumn PatientSex;
		private DataGridViewTextBoxColumn PatientAddress;
		private DataGridViewTextBoxColumn PatientPhone;
		private DataGridViewTextBoxColumn Printed;
		private DataGridViewTextBoxColumn doctorID;
		private DataGridViewTextBoxColumn DoctorName;
		private DataGridViewTextBoxColumn Desease;
		private DataGridViewTextBoxColumn PatientID;
		private DataGridViewTextBoxColumn UserGuide;
		private DataGridViewTextBoxColumn DoctorGuide;
		private DataGridViewTextBoxColumn Status;
		private DataGridViewTextBoxColumn productName;
		private DataGridViewTextBoxColumn productUnit;
		private DataGridViewTextBoxColumn productNumber;
		private DataGridViewTextBoxColumn ProductID;
		private DataGridViewTextBoxColumn ProductGuide;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn11;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn12;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn13;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn14;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn15;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn16;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn17;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn18;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn19;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn20;
		private TextBox txtPatientName;
		private Label label4;
		public frmSelectPrescription()
		{
			this.InitializeComponent();
		}
		private void frmOutputRetail_Load(object sender, EventArgs e)
		{
			this.cbbSex.SelectedIndex = 0;
			string text = "";
			this.currDortorID = this.objDoctor.getDoctorName(this.userName, ref text);
			this.txtDoctor.Text = text;
			this.getBill();
		}
		private void btnClose_Click(object sender, EventArgs e)
		{
			this.selected = false;
			base.Close();
		}
		private void frmOutputRetail_KeyDown(object sender, KeyEventArgs e)
		{
			if (e.KeyCode == Keys.Escape)
			{
				base.Close();
			}
			else
			{
				if (e.KeyCode == Keys.F2)
				{
					this.btnSelect.PerformClick();
				}
				else
				{
					if (e.KeyCode == Keys.F3)
					{
						this.btnAddToBill.PerformClick();
					}
				}
			}
		}
		private void btnSave_Click(object sender, EventArgs e)
		{
			string text;
			if (this.cbbSex.Text == "NAM")
			{
				text = "1";
			}
			else
			{
				text = "0";
			}
			this.currCusID = this.objDoctor.cusPrescription(this.currCusID, this.txtName.Text, this.txtAge.Value.ToString(), text, this.txtAddress.Text, this.txtPhone.Text);
			this.txtID.Text = this.objDoctor.savePrescription(this.txtID.Text, this.txtDate.Value, this.currDortorID, this.txtName.Text, this.txtAge.Value.ToString(), text, this.txtAddress.Text, this.txtPhone.Text, this.txtDoctor.Text, this.currCusID, this.txtDesease.Text, this.txtUserGuide.Text, this.txtDoctorGuide.Text);
			this.objDoctor.savePrescriptionDetail(this.txtID.Text, this.objProductTable);
			this.getBill();
			this.EnableControl(false);
		}
		private void btnEdit_Click(object sender, EventArgs e)
		{
			this.EnableControl(true);
		}
		private void btnAdd_Click(object sender, EventArgs e)
		{
			DataColumn column = new DataColumn("ProductID", typeof(string));
			DataColumn column2 = new DataColumn("ProductName", typeof(string));
			DataColumn column3 = new DataColumn("ProductUnit", typeof(string));
			DataColumn column4 = new DataColumn("ProductNumber", typeof(string));
			DataColumn column5 = new DataColumn("ProductGuide", typeof(string));
			this.objProductTable = new DataTable();
			this.objProductTable.Columns.Add(column);
			this.objProductTable.Columns.Add(column2);
			this.objProductTable.Columns.Add(column3);
			this.objProductTable.Columns.Add(column4);
			this.objProductTable.Columns.Add(column5);
			this.dgvProduct.DataSource = this.objProductTable;
			this.txtName.Text = "";
			this.txtAge.Value = 0m;
			this.cbbSex.SelectedIndex = 0;
			this.txtAddress.Text = "";
			this.txtDesease.Text = "";
			this.txtUserGuide.Text = "";
			this.txtDoctorGuide.Text = "";
			this.EnableControl(true);
			this.currCusID = "0";
			this.txtID.Text = "-:-";
			this.txtName.Focus();
		}
		private void EnableControl(bool Act)
		{
			this.txtID.ReadOnly = !Act;
			this.txtName.ReadOnly = !Act;
			this.txtAge.ReadOnly = !Act;
			this.txtAddress.ReadOnly = !Act;
			this.txtPhone.ReadOnly = !Act;
			this.txtDesease.ReadOnly = !Act;
			this.txtUserGuide.ReadOnly = !Act;
			this.txtDoctorGuide.ReadOnly = !Act;
			this.btnAddToBill.Enabled = Act;
			this.btnSelect.Enabled = Act;
		}
		private void btnPrint_Click(object sender, EventArgs e)
		{
			try
			{
				frmPrescriptionPrint.objTable = this.objProductTable;
				frmPrescriptionPrint.billID = this.txtID.Text;
				frmPrescriptionPrint.FullName = this.txtName.Text;
				frmPrescriptionPrint.Age = this.txtAge.Value.ToString();
				frmPrescriptionPrint.Gender = this.cbbSex.Text;
				frmPrescriptionPrint.Address = this.txtAddress.Text;
				frmPrescriptionPrint.Phone = this.txtPhone.Text;
				frmPrescriptionPrint.Desease = this.txtDesease.Text;
				frmPrescriptionPrint.DoctorGuide = this.txtDoctorGuide.Text;
				frmPrescriptionPrint.objDateTimePrint = this.txtDate.Value;
				frmPrescriptionView frmPrescriptionView = new frmPrescriptionView();
				frmPrescriptionView.ShowDialog();
			}
			catch (Exception ex)
			{
				MessageBox.Show(ex.Message);
			}
		}
		private void btnDel_Click(object sender, EventArgs e)
		{
			if (this.txtID.Text.Trim() != "-:-")
			{
				if (MessageBox.Show("Bạn có chắc chắn muốn xoá hoá đơn [ " + this.txtID.Text.ToUpper() + " ] không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
				{
					this.objDoctor.delPrescription(this.txtID.Text);
					this.txtName.Text = "";
					this.txtAge.Value = 0m;
					this.cbbSex.SelectedIndex = 0;
					this.txtAddress.Text = "";
					this.txtDesease.Text = "";
					this.txtUserGuide.Text = "";
					this.txtDoctorGuide.Text = "";
					this.EnableControl(true);
					this.currCusID = "0";
					this.txtID.Text = "-:-";
					this.getBill();
				}
			}
		}
		private void txtProductName_TextChanged(object sender, EventArgs e)
		{
		}
		private void getBill()
		{
			try
			{
				this.dgvBill.AutoGenerateColumns = false;
				this.dgvProduct.DataSource = null;
				this.dgvProduct.AutoGenerateColumns = false;
				SqlConnection sqlConnection = new SqlConnection(this.objFunc.strConnectionString);
				string cmdText;
				if (this.txtPatientName.Text.Trim() != "")
				{
					cmdText = "SELECT * FROM [TabPrescription] WHERE UPPER(PatientName) LIKE N'%" + this.txtPatientName.Text.Trim().ToUpper() + "%' AND DateCreate BETWEEN @ObjDate1 AND @objDate2 ORDER BY [Status] ASC,[DateCreate], [ID] DESC";
				}
				else
				{
					cmdText = "SELECT * FROM [TabPrescription] WHERE DateCreate BETWEEN @ObjDate1 AND @objDate2 ORDER BY [Status] ASC,[DateCreate], [ID] DESC";
				}
				SqlCommand sqlCommand = new SqlCommand(cmdText, sqlConnection);
				SqlParameter sqlParameter = new SqlParameter("ObjDate1", SqlDbType.DateTime);
				SqlParameter sqlParameter2 = new SqlParameter("ObjDate2", SqlDbType.DateTime);
				sqlParameter.Value = DateTime.Parse(this.dtpFrom.Value.ToString().Substring(0, 10) + " 00:00:00 AM");
				sqlParameter2.Value = DateTime.Parse(this.dtpTo.Value.ToString().Substring(0, 10) + " 11:59:59 PM");
				sqlCommand.Parameters.Add(sqlParameter);
				sqlCommand.Parameters.Add(sqlParameter2);
				SqlDataAdapter sqlDataAdapter = new SqlDataAdapter(sqlCommand);
				DataSet dataSet = new DataSet();
				sqlConnection.Open();
				sqlDataAdapter.Fill(dataSet);
				this.dgvBill.DataSource = dataSet.Tables[0];
				sqlConnection.Close();
				sqlConnection.Dispose();
				sqlDataAdapter.Dispose();
				dataSet.Dispose();
			}
			catch (Exception ex)
			{
				MessageBox.Show(ex.Message);
			}
		}
		private void txtProductUnit_TextChanged(object sender, EventArgs e)
		{
		}
		private void txtProductPrice_TextChanged(object sender, EventArgs e)
		{
			this.objFunc.txtObject_Leave(sender);
		}
		private void txtProductNumber_TextChanged(object sender, EventArgs e)
		{
		}
		private void txtProductMoney_TextChanged(object sender, EventArgs e)
		{
			this.objFunc.txtObject_Leave(sender);
		}
		private void dgvBill_CellEnter(object sender, DataGridViewCellEventArgs e)
		{
			try
			{
				this.objProductTable = new DataTable();
				this.txtID.Text = this.dgvBill.Rows[e.RowIndex].Cells["billID"].Value.ToString();
				this.txtName.Text = this.dgvBill.Rows[e.RowIndex].Cells["PatientName"].Value.ToString();
				this.txtDate.Value = DateTime.Parse(this.dgvBill.Rows[e.RowIndex].Cells["DateCreate"].Value.ToString());
				this.txtAddress.Text = this.dgvBill.Rows[e.RowIndex].Cells["PatientAddress"].Value.ToString();
				this.txtAge.Value = int.Parse(this.dgvBill.Rows[e.RowIndex].Cells["PatientAge"].Value.ToString());
				this.cbbSex.Text = this.dgvBill.Rows[e.RowIndex].Cells["PatientSex"].Value.ToString().Replace("1", "NAM").Replace("0", "NỮ");
				this.txtPhone.Text = this.dgvBill.Rows[e.RowIndex].Cells["PatientPhone"].Value.ToString();
				this.txtDoctor.Text = this.dgvBill.Rows[e.RowIndex].Cells["DoctorName"].Value.ToString();
				this.txtDesease.Text = this.dgvBill.Rows[e.RowIndex].Cells["Desease"].Value.ToString();
				this.currCusID = this.dgvBill.Rows[e.RowIndex].Cells["PatientID"].Value.ToString();
				this.txtUserGuide.Text = this.dgvBill.Rows[e.RowIndex].Cells["UserGuide"].Value.ToString();
				this.txtDoctorGuide.Text = this.dgvBill.Rows[e.RowIndex].Cells["DoctorGuide"].Value.ToString();
				this.objProductTable = this.objDoctor.getPrescriptionDetail(this.txtID.Text);
				this.dgvProduct.DataSource = this.objProductTable;
			}
			catch
			{
			}
		}
		private void cbbPacket_SelectedIndexChanged(object sender, EventArgs e)
		{
		}
		private void dtpSelectMonth_ValueChanged(object sender, EventArgs e)
		{
		}
		private void txtBarcode_TextChanged(object sender, EventArgs e)
		{
		}
		private void btnSearch_Click(object sender, EventArgs e)
		{
		}
		private void btnViewAll_Click(object sender, EventArgs e)
		{
		}
		private void txtProductMoney_Leave(object sender, EventArgs e)
		{
			this.objFunc.txtObject_Leave(sender);
		}
		private void txtBalancer_Leave(object sender, EventArgs e)
		{
			this.objFunc.txtObject_Leave(sender);
		}
		private void txtTotalMoney_Leave(object sender, EventArgs e)
		{
			this.objFunc.txtObject_Leave(sender);
		}
		private void txtTotalMoney_TextChanged(object sender, EventArgs e)
		{
			this.objFunc.txtObject_Leave(sender);
		}
		private void btnFind_Click(object sender, EventArgs e)
		{
			frmFindCustomerFree frmFindCustomerFree = new frmFindCustomerFree();
			frmFindCustomerFree.ShowDialog();
			if (frmFindCustomerFree._Name.Trim() != "")
			{
				this.txtName.Text = frmFindCustomerFree._Name;
				this.txtAddress.Text = frmFindCustomerFree._Address;
				this.txtPhone.Text = frmFindCustomerFree._Phone;
				this.txtAge.Text = frmFindCustomerFree._Age;
				this.cbbSex.SelectedValue = frmFindCustomerFree._Gender;
			}
		}
		private void btnListUnit_Click(object sender, EventArgs e)
		{
		}
		private void txtBarcode_KeyDown(object sender, KeyEventArgs e)
		{
		}
		private void txtProductName_KeyPress(object sender, KeyPressEventArgs e)
		{
		}
		private void txtProductNumber_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == '\r')
			{
				this.btnAddToBill.PerformClick();
			}
		}
		private void txtID_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == '\r')
			{
				this.txtName.Focus();
			}
		}
		private void txtName_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == '\r')
			{
				this.txtAge.Focus();
			}
		}
		private void txtAge_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == '\r')
			{
				this.cbbSex.Focus();
			}
		}
		private void cbbSex_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == '\r')
			{
				this.txtAddress.Focus();
			}
		}
		private void txtDate_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == '\r')
			{
				this.txtAddress.Focus();
			}
		}
		private void txtAddress_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == '\r')
			{
				this.txtPhone.Focus();
			}
		}
		private void txtPhone_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == '\r')
			{
				this.txtDesease.Focus();
			}
		}
		private void txtNote_KeyPress(object sender, KeyPressEventArgs e)
		{
		}
		private void txtDesease_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == '\r')
			{
				this.txtDoctor.Focus();
			}
		}
		private void txtID_Enter(object sender, EventArgs e)
		{
			this.txtID.BackColor = Color.Aqua;
		}
		private void txtID_Leave(object sender, EventArgs e)
		{
			this.txtID.BackColor = Color.White;
		}
		private void txtName_Enter(object sender, EventArgs e)
		{
			this.txtName.BackColor = Color.Aqua;
		}
		private void txtName_Leave(object sender, EventArgs e)
		{
			this.txtName.BackColor = Color.White;
		}
		private void txtAge_Enter(object sender, EventArgs e)
		{
			this.txtAge.BackColor = Color.Aqua;
		}
		private void txtAge_Leave(object sender, EventArgs e)
		{
			this.txtAge.BackColor = Color.White;
		}
		private void txtAddress_Enter(object sender, EventArgs e)
		{
			this.txtAddress.BackColor = Color.Aqua;
		}
		private void txtAddress_Leave(object sender, EventArgs e)
		{
			this.txtAddress.BackColor = Color.White;
		}
		private void txtPhone_Enter(object sender, EventArgs e)
		{
			this.txtPhone.BackColor = Color.Aqua;
		}
		private void txtPhone_Leave(object sender, EventArgs e)
		{
			this.txtPhone.BackColor = Color.White;
		}
		private void txtNote_Enter(object sender, EventArgs e)
		{
			this.txtDoctorGuide.BackColor = Color.Aqua;
		}
		private void txtNote_Leave(object sender, EventArgs e)
		{
			this.txtDoctorGuide.BackColor = Color.White;
		}
		private void txtDoctor_Enter(object sender, EventArgs e)
		{
			this.txtDoctor.BackColor = Color.Aqua;
		}
		private void txtDoctor_Leave(object sender, EventArgs e)
		{
			this.txtDoctor.BackColor = Color.White;
		}
		private void txtDesease_Enter(object sender, EventArgs e)
		{
			this.txtDesease.BackColor = Color.Aqua;
		}
		private void txtDesease_Leave(object sender, EventArgs e)
		{
			this.txtDesease.BackColor = Color.White;
		}
		private void txtProductPrice_Enter(object sender, EventArgs e)
		{
		}
		private void txtProductPrice_Leave(object sender, EventArgs e)
		{
		}
		private void btnSearchTime_Click(object sender, EventArgs e)
		{
			this.getBill();
		}
		private void txtMoney_TextChanged(object sender, EventArgs e)
		{
		}
		private void txtDiscountOut_TextChanged(object sender, EventArgs e)
		{
		}
		private void txtMoneyAfterDiscount_Leave(object sender, EventArgs e)
		{
		}
		private void btnSelect_Click(object sender, EventArgs e)
		{
			this.selected = true;
			base.Close();
		}
		private void dgvBill_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e)
		{
			DataGridViewCellStyle dataGridViewCellStyle = new DataGridViewCellStyle();
			dataGridViewCellStyle.BackColor = SystemColors.ScrollBar;
			DataGridViewCellStyle dataGridViewCellStyle2 = new DataGridViewCellStyle();
			dataGridViewCellStyle2.BackColor = Color.White;
			if (this.dgvBill.Rows[e.RowIndex].Cells["Status"].Value.ToString() == "0")
			{
				this.dgvBill.Rows[e.RowIndex].Cells[0].Style = dataGridViewCellStyle2;
				this.dgvBill.Rows[e.RowIndex].Cells[1].Style = dataGridViewCellStyle2;
			}
			else
			{
				this.dgvBill.Rows[e.RowIndex].Cells[0].Style = dataGridViewCellStyle;
				this.dgvBill.Rows[e.RowIndex].Cells[1].Style = dataGridViewCellStyle;
			}
		}
		private void txtPatientName_TextChanged(object sender, EventArgs e)
		{
			this.getBill();
		}
		private void frmSelectPrescription_Shown(object sender, EventArgs e)
		{
			this.txtPatientName.Focus();
		}
		private void txtPatientName_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == '\r')
			{
				this.dgvBill.Focus();
			}
		}
		private void dgvBill_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == '\r')
			{
				this.btnSelect.PerformClick();
			}
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			this.components = new Container();
			ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmSelectPrescription));
			DataGridViewCellStyle dataGridViewCellStyle = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle2 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle3 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle4 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle5 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle6 = new DataGridViewCellStyle();
			this.groupBox3 = new GroupBox();
			this.label25 = new Label();
			this.label17 = new Label();
			this.btnSearchTime = new Button();
			this.dtpTo = new DateTimePicker();
			this.dtpFrom = new DateTimePicker();
			this.dgvBill = new DataGridView();
			this.btnClose = new Button();
			this.dgvProduct = new DataGridView();
			this.groupBox1 = new GroupBox();
			this.txtAge = new NumericUpDown();
			this.label28 = new Label();
			this.txtDesease = new TextBox();
			this.label19 = new Label();
			this.txtPhone = new TextBox();
			this.label8 = new Label();
			this.txtDoctor = new TextBox();
			this.txtAddress = new TextBox();
			this.label6 = new Label();
			this.label5 = new Label();
			this.cbbSex = new ComboBox();
			this.txtName = new TextBox();
			this.label3 = new Label();
			this.label2 = new Label();
			this.txtDate = new DateTimePicker();
			this.txtID = new TextBox();
			this.label1 = new Label();
			this.txtDoctorGuide = new TextBox();
			this.label9 = new Label();
			this.btnAddToBill = new Button();
			this.toolTip1 = new ToolTip(this.components);
			this.label26 = new Label();
			this.txtUserGuide = new TextBox();
			this.label7 = new Label();
			this.btnSelect = new Button();
			this.txtPatientName = new TextBox();
			this.label4 = new Label();
			this.dataGridViewTextBoxColumn1 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn2 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn3 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn4 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn5 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn6 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn7 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn8 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn9 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn10 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn11 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn12 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn13 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn14 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn15 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn16 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn17 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn18 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn19 = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn20 = new DataGridViewTextBoxColumn();
			this.productName = new DataGridViewTextBoxColumn();
			this.productUnit = new DataGridViewTextBoxColumn();
			this.productNumber = new DataGridViewTextBoxColumn();
			this.ProductID = new DataGridViewTextBoxColumn();
			this.ProductGuide = new DataGridViewTextBoxColumn();
			this.billID = new DataGridViewTextBoxColumn();
			this.DateCreate = new DataGridViewTextBoxColumn();
			this.PatientName = new DataGridViewTextBoxColumn();
			this.PatientAge = new DataGridViewTextBoxColumn();
			this.PatientSex = new DataGridViewTextBoxColumn();
			this.PatientAddress = new DataGridViewTextBoxColumn();
			this.PatientPhone = new DataGridViewTextBoxColumn();
			this.Printed = new DataGridViewTextBoxColumn();
			this.doctorID = new DataGridViewTextBoxColumn();
			this.DoctorName = new DataGridViewTextBoxColumn();
			this.Desease = new DataGridViewTextBoxColumn();
			this.PatientID = new DataGridViewTextBoxColumn();
			this.UserGuide = new DataGridViewTextBoxColumn();
			this.DoctorGuide = new DataGridViewTextBoxColumn();
			this.Status = new DataGridViewTextBoxColumn();
			this.groupBox3.SuspendLayout();
			((ISupportInitialize)this.dgvBill).BeginInit();
			((ISupportInitialize)this.dgvProduct).BeginInit();
			this.groupBox1.SuspendLayout();
			((ISupportInitialize)this.txtAge).BeginInit();
			base.SuspendLayout();
			this.groupBox3.Controls.Add(this.label4);
			this.groupBox3.Controls.Add(this.txtPatientName);
			this.groupBox3.Controls.Add(this.label25);
			this.groupBox3.Controls.Add(this.label17);
			this.groupBox3.Controls.Add(this.btnSearchTime);
			this.groupBox3.Controls.Add(this.dtpTo);
			this.groupBox3.Controls.Add(this.dtpFrom);
			this.groupBox3.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.groupBox3.Location = new System.Drawing.Point(8, 5);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new Size(919, 50);
			this.groupBox3.TabIndex = 0;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "Tìm kiếm";
			this.label25.AutoSize = true;
			this.label25.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.label25.Location = new System.Drawing.Point(61, 21);
			this.label25.Name = "label25";
			this.label25.Size = new Size(57, 15);
			this.label25.TabIndex = 157;
			this.label25.Text = "Từ ngày :";
//			this.label17.Image = (Image)componentResourceManager.GetObject("label17.Image");
			this.label17.Location = new System.Drawing.Point(208, 16);
			this.label17.Name = "label17";
			this.label17.Size = new Size(20, 25);
			this.label17.TabIndex = 156;
			this.btnSearchTime.FlatAppearance.BorderColor = Color.FromArgb(0, 192, 192);
			this.btnSearchTime.FlatStyle = FlatStyle.Flat;
			this.btnSearchTime.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnSearchTime.Location = new System.Drawing.Point(779, 15);
			this.btnSearchTime.Name = "btnSearchTime";
			this.btnSearchTime.Size = new Size(132, 26);
			this.btnSearchTime.TabIndex = 4;
			this.btnSearchTime.Text = "Tìm kiếm đơn thuốc";
			this.btnSearchTime.UseVisualStyleBackColor = true;
			this.btnSearchTime.Click += new EventHandler(this.btnSearchTime_Click);
			this.dtpTo.CustomFormat = "dd/MM/yyyy";
			this.dtpTo.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.dtpTo.Format = DateTimePickerFormat.Custom;
			this.dtpTo.Location = new System.Drawing.Point(230, 18);
			this.dtpTo.Name = "dtpTo";
			this.dtpTo.Size = new Size(86, 21);
			this.dtpTo.TabIndex = 2;
			this.dtpFrom.CustomFormat = "dd/MM/yyyy";
			this.dtpFrom.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.dtpFrom.Format = DateTimePickerFormat.Custom;
			this.dtpFrom.Location = new System.Drawing.Point(120, 18);
			this.dtpFrom.Name = "dtpFrom";
			this.dtpFrom.Size = new Size(86, 21);
			this.dtpFrom.TabIndex = 1;
			this.dgvBill.AllowUserToAddRows = false;
			this.dgvBill.AllowUserToDeleteRows = false;
			this.dgvBill.AllowUserToOrderColumns = true;
			this.dgvBill.AllowUserToResizeColumns = false;
			this.dgvBill.AllowUserToResizeRows = false;
			dataGridViewCellStyle.BackColor = Color.FromArgb(192, 255, 255);
			dataGridViewCellStyle.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.dgvBill.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle;
			this.dgvBill.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left);
			this.dgvBill.BackgroundColor = Color.White;
			this.dgvBill.BorderStyle = BorderStyle.Fixed3D;
			this.dgvBill.ColumnHeadersHeight = 26;
			this.dgvBill.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
			this.dgvBill.Columns.AddRange(new DataGridViewColumn[]
			{
				this.billID,
				this.DateCreate,
				this.PatientName,
				this.PatientAge,
				this.PatientSex,
				this.PatientAddress,
				this.PatientPhone,
				this.Printed,
				this.doctorID,
				this.DoctorName,
				this.Desease,
				this.PatientID,
				this.UserGuide,
				this.DoctorGuide,
				this.Status
			});
			this.dgvBill.Cursor = Cursors.Hand;
			this.dgvBill.EnableHeadersVisualStyles = false;
			this.dgvBill.Location = new System.Drawing.Point(8, 60);
			this.dgvBill.MultiSelect = false;
			this.dgvBill.Name = "dgvBill";
			this.dgvBill.ReadOnly = true;
			this.dgvBill.RowHeadersVisible = false;
			this.dgvBill.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.DisableResizing;
			this.dgvBill.RowTemplate.DefaultCellStyle.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.dgvBill.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
			this.dgvBill.Size = new Size(919, 254);
			this.dgvBill.TabIndex = 5;
			this.dgvBill.RowPrePaint += new DataGridViewRowPrePaintEventHandler(this.dgvBill_RowPrePaint);
			this.dgvBill.CellEnter += new DataGridViewCellEventHandler(this.dgvBill_CellEnter);
			this.dgvBill.KeyPress += new KeyPressEventHandler(this.dgvBill_KeyPress);
			this.btnClose.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnClose.Cursor = Cursors.Hand;
			this.btnClose.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnClose.Location = new System.Drawing.Point(816, 583);
			this.btnClose.Name = "btnClose";
			this.btnClose.Size = new Size(111, 28);
			this.btnClose.TabIndex = 8;
			this.btnClose.Text = "Thoát [ ESC ]";
			this.btnClose.UseVisualStyleBackColor = true;
			this.btnClose.Click += new EventHandler(this.btnClose_Click);
			this.dgvProduct.AllowUserToAddRows = false;
			this.dgvProduct.AllowUserToDeleteRows = false;
			this.dgvProduct.AllowUserToOrderColumns = true;
			this.dgvProduct.AllowUserToResizeColumns = false;
			this.dgvProduct.AllowUserToResizeRows = false;
			dataGridViewCellStyle2.BackColor = Color.White;
			dataGridViewCellStyle2.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle2;
			this.dgvProduct.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.dgvProduct.BackgroundColor = Color.White;
			this.dgvProduct.BorderStyle = BorderStyle.Fixed3D;
			this.dgvProduct.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
			this.dgvProduct.Columns.AddRange(new DataGridViewColumn[]
			{
				this.productName,
				this.productUnit,
				this.productNumber,
				this.ProductID,
				this.ProductGuide
			});
			this.dgvProduct.Cursor = Cursors.Hand;
			this.dgvProduct.EnableHeadersVisualStyles = false;
			this.dgvProduct.Location = new System.Drawing.Point(8, 319);
			this.dgvProduct.MultiSelect = false;
			this.dgvProduct.Name = "dgvProduct";
			this.dgvProduct.ReadOnly = true;
			this.dgvProduct.RowHeadersVisible = false;
			this.dgvProduct.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.DisableResizing;
			this.dgvProduct.RowTemplate.DefaultCellStyle.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.dgvProduct.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
			this.dgvProduct.Size = new Size(919, 233);
			this.dgvProduct.TabIndex = 6;
			this.toolTip1.SetToolTip(this.dgvProduct, "Bấm nút phải chuột để chọn\r\nmenu thao tác nhanh !");
			this.groupBox1.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.groupBox1.Controls.Add(this.txtAge);
			this.groupBox1.Controls.Add(this.label28);
			this.groupBox1.Controls.Add(this.txtDesease);
			this.groupBox1.Controls.Add(this.label19);
			this.groupBox1.Controls.Add(this.txtPhone);
			this.groupBox1.Controls.Add(this.label8);
			this.groupBox1.Controls.Add(this.txtDoctor);
			this.groupBox1.Controls.Add(this.txtAddress);
			this.groupBox1.Controls.Add(this.label6);
			this.groupBox1.Controls.Add(this.label5);
			this.groupBox1.Controls.Add(this.cbbSex);
			this.groupBox1.Controls.Add(this.txtName);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.txtDate);
			this.groupBox1.Controls.Add(this.txtID);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.groupBox1.Location = new System.Drawing.Point(246, 333);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new Size(479, 77);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "Thông tin đơn thuốc";
			this.txtAge.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.txtAge.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.txtAge.Location = new System.Drawing.Point(339, 18);
            //NumericUpDown arg_FB7_0 = this.txtAge;
			int[] array = new int[4];
			array[0] = 200;
            txtAge.Maximum = new decimal(array);
			this.txtAge.Name = "txtAge";
			this.txtAge.Size = new Size(49, 22);
			this.txtAge.TabIndex = 4;
			this.txtAge.TextAlign = HorizontalAlignment.Center;
			this.txtAge.Leave += new EventHandler(this.txtAge_Leave);
			this.txtAge.KeyPress += new KeyPressEventHandler(this.txtAge_KeyPress);
			this.txtAge.Enter += new EventHandler(this.txtAge_Enter);
			this.label28.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.label28.BackColor = Color.FromArgb(255, 255, 192);
			this.label28.BorderStyle = BorderStyle.Fixed3D;
			this.label28.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.label28.Location = new System.Drawing.Point(197, 75);
			this.label28.Name = "label28";
			this.label28.Size = new Size(59, 21);
			this.label28.TabIndex = 47;
			this.label28.Text = "Bác sĩ :";
			this.label28.TextAlign = ContentAlignment.MiddleRight;
			this.txtDesease.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.txtDesease.BackColor = Color.White;
			this.txtDesease.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.txtDesease.Location = new System.Drawing.Point(105, 75);
			this.txtDesease.Name = "txtDesease";
			this.txtDesease.ReadOnly = true;
			this.txtDesease.Size = new Size(86, 22);
			this.txtDesease.TabIndex = 8;
			this.txtDesease.Leave += new EventHandler(this.txtDesease_Leave);
			this.txtDesease.KeyPress += new KeyPressEventHandler(this.txtDesease_KeyPress);
			this.txtDesease.Enter += new EventHandler(this.txtDesease_Enter);
			this.label19.BackColor = Color.FromArgb(255, 255, 192);
			this.label19.BorderStyle = BorderStyle.Fixed3D;
			this.label19.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.label19.Location = new System.Drawing.Point(12, 75);
			this.label19.Name = "label19";
			this.label19.Size = new Size(89, 21);
			this.label19.TabIndex = 45;
			this.label19.Text = "Chuẩn đoán :";
			this.label19.TextAlign = ContentAlignment.MiddleRight;
			this.txtPhone.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.txtPhone.BackColor = Color.White;
			this.txtPhone.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.txtPhone.Location = new System.Drawing.Point(339, 47);
			this.txtPhone.Name = "txtPhone";
			this.txtPhone.ReadOnly = true;
			this.txtPhone.Size = new Size(130, 22);
			this.txtPhone.TabIndex = 7;
			this.txtPhone.Leave += new EventHandler(this.txtPhone_Leave);
			this.txtPhone.KeyPress += new KeyPressEventHandler(this.txtPhone_KeyPress);
			this.txtPhone.Enter += new EventHandler(this.txtPhone_Enter);
			this.label8.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.label8.BackColor = Color.FromArgb(255, 255, 192);
			this.label8.BorderStyle = BorderStyle.Fixed3D;
			this.label8.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.label8.Location = new System.Drawing.Point(261, 47);
			this.label8.Name = "label8";
			this.label8.Size = new Size(74, 21);
			this.label8.TabIndex = 30;
			this.label8.Text = "Điện thoại :";
			this.label8.TextAlign = ContentAlignment.MiddleRight;
			this.txtDoctor.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.txtDoctor.BackColor = Color.White;
			this.txtDoctor.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.txtDoctor.Location = new System.Drawing.Point(261, 75);
			this.txtDoctor.Name = "txtDoctor";
			this.txtDoctor.ReadOnly = true;
			this.txtDoctor.Size = new Size(208, 22);
			this.txtDoctor.TabIndex = 9;
			this.txtDoctor.Leave += new EventHandler(this.txtDoctor_Leave);
			this.txtDoctor.Enter += new EventHandler(this.txtDoctor_Enter);
			this.txtAddress.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.txtAddress.BackColor = Color.White;
			this.txtAddress.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.txtAddress.Location = new System.Drawing.Point(301, 47);
			this.txtAddress.Name = "txtAddress";
			this.txtAddress.ReadOnly = true;
			this.txtAddress.Size = new Size(0, 22);
			this.txtAddress.TabIndex = 6;
			this.txtAddress.Leave += new EventHandler(this.txtAddress_Leave);
			this.txtAddress.KeyPress += new KeyPressEventHandler(this.txtAddress_KeyPress);
			this.txtAddress.Enter += new EventHandler(this.txtAddress_Enter);
			this.label6.BackColor = Color.FromArgb(255, 255, 192);
			this.label6.BorderStyle = BorderStyle.Fixed3D;
			this.label6.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.label6.Location = new System.Drawing.Point(210, 47);
			this.label6.Name = "label6";
			this.label6.Size = new Size(87, 21);
			this.label6.TabIndex = 28;
			this.label6.Text = "Địa chỉ :";
			this.label6.TextAlign = ContentAlignment.MiddleRight;
			this.label5.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.label5.BackColor = Color.FromArgb(255, 255, 192);
			this.label5.BorderStyle = BorderStyle.Fixed3D;
			this.label5.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.label5.Location = new System.Drawing.Point(261, 18);
			this.label5.Name = "label5";
			this.label5.Size = new Size(74, 21);
			this.label5.TabIndex = 26;
			this.label5.Text = "Tuổi :";
			this.label5.TextAlign = ContentAlignment.MiddleRight;
			this.cbbSex.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.cbbSex.BackColor = Color.White;
			this.cbbSex.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbSex.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.cbbSex.FormattingEnabled = true;
			this.cbbSex.Items.AddRange(new object[]
			{
				"NAM",
				"NỮ"
			});
			this.cbbSex.Location = new System.Drawing.Point(394, 17);
			this.cbbSex.Name = "cbbSex";
			this.cbbSex.Size = new Size(75, 23);
			this.cbbSex.TabIndex = 5;
			this.cbbSex.KeyPress += new KeyPressEventHandler(this.cbbSex_KeyPress);
			this.txtName.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.txtName.BackColor = Color.White;
			this.txtName.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.txtName.Location = new System.Drawing.Point(301, 18);
			this.txtName.Name = "txtName";
			this.txtName.ReadOnly = true;
			this.txtName.Size = new Size(0, 22);
			this.txtName.TabIndex = 3;
			this.txtName.Leave += new EventHandler(this.txtName_Leave);
			this.txtName.KeyPress += new KeyPressEventHandler(this.txtName_KeyPress);
			this.txtName.Enter += new EventHandler(this.txtName_Enter);
			this.label3.BackColor = Color.FromArgb(255, 255, 192);
			this.label3.BorderStyle = BorderStyle.Fixed3D;
			this.label3.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.label3.Location = new System.Drawing.Point(210, 18);
			this.label3.Name = "label3";
			this.label3.Size = new Size(87, 21);
			this.label3.TabIndex = 22;
			this.label3.Text = "Bệnh nhân :";
			this.label3.TextAlign = ContentAlignment.MiddleRight;
			this.label2.BackColor = Color.FromArgb(255, 255, 192);
			this.label2.BorderStyle = BorderStyle.Fixed3D;
			this.label2.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.label2.Location = new System.Drawing.Point(12, 47);
			this.label2.Name = "label2";
			this.label2.Size = new Size(89, 21);
			this.label2.TabIndex = 19;
			this.label2.Text = "Ngày kê :";
			this.label2.TextAlign = ContentAlignment.MiddleRight;
			this.txtDate.CustomFormat = "dd/MM/yyyy";
			this.txtDate.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.txtDate.Format = DateTimePickerFormat.Custom;
			this.txtDate.Location = new System.Drawing.Point(105, 47);
			this.txtDate.Name = "txtDate";
			this.txtDate.Size = new Size(100, 22);
			this.txtDate.TabIndex = 2;
			this.txtDate.KeyPress += new KeyPressEventHandler(this.txtDate_KeyPress);
			this.txtID.BackColor = Color.White;
			this.txtID.CharacterCasing = CharacterCasing.Upper;
			this.txtID.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.txtID.Location = new System.Drawing.Point(105, 18);
			this.txtID.Name = "txtID";
			this.txtID.ReadOnly = true;
			this.txtID.Size = new Size(100, 22);
			this.txtID.TabIndex = 1;
			this.txtID.Leave += new EventHandler(this.txtID_Leave);
			this.txtID.KeyPress += new KeyPressEventHandler(this.txtID_KeyPress);
			this.txtID.Enter += new EventHandler(this.txtID_Enter);
			this.label1.BackColor = Color.FromArgb(255, 255, 192);
			this.label1.BorderStyle = BorderStyle.Fixed3D;
			this.label1.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.label1.Location = new System.Drawing.Point(12, 18);
			this.label1.Name = "label1";
			this.label1.Size = new Size(89, 21);
			this.label1.TabIndex = 16;
			this.label1.Text = "Số đơn :";
			this.label1.TextAlign = ContentAlignment.MiddleRight;
			this.txtDoctorGuide.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.txtDoctorGuide.BackColor = Color.White;
			this.txtDoctorGuide.BorderStyle = BorderStyle.FixedSingle;
			this.txtDoctorGuide.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.txtDoctorGuide.Location = new System.Drawing.Point(143, 584);
			this.txtDoctorGuide.Name = "txtDoctorGuide";
			this.txtDoctorGuide.ReadOnly = true;
			this.txtDoctorGuide.Size = new Size(664, 22);
			this.txtDoctorGuide.TabIndex = 17;
			this.txtDoctorGuide.Leave += new EventHandler(this.txtNote_Leave);
			this.txtDoctorGuide.KeyPress += new KeyPressEventHandler(this.txtNote_KeyPress);
			this.txtDoctorGuide.Enter += new EventHandler(this.txtNote_Enter);
			this.label9.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.label9.AutoSize = true;
			this.label9.BackColor = SystemColors.ActiveCaption;
			this.label9.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label9.Location = new System.Drawing.Point(22, 587);
			this.label9.Name = "label9";
			this.label9.Size = new Size(120, 15);
			this.label9.TabIndex = 32;
			this.label9.Text = "Chỉ dẫn của Bác sỹ :";
			this.btnAddToBill.BackColor = Color.White;
			this.btnAddToBill.Enabled = false;
			this.btnAddToBill.FlatAppearance.BorderColor = Color.FromArgb(192, 255, 255);
			this.btnAddToBill.FlatStyle = FlatStyle.Flat;
			this.btnAddToBill.Location = new System.Drawing.Point(247, 462);
			this.btnAddToBill.Name = "btnAddToBill";
			this.btnAddToBill.Size = new Size(140, 26);
			this.btnAddToBill.TabIndex = 200;
			this.btnAddToBill.Text = "Thêm sản phẩm  [ F3 ]";
			this.btnAddToBill.UseVisualStyleBackColor = false;
			this.toolTip1.IsBalloon = true;
			this.label26.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.label26.BackColor = SystemColors.ActiveCaption;
			this.label26.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label26.Location = new System.Drawing.Point(8, 557);
			this.label26.Name = "label26";
			this.label26.Size = new Size(802, 53);
			this.label26.TabIndex = 90;
			this.txtUserGuide.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.txtUserGuide.BackColor = Color.White;
			this.txtUserGuide.BorderStyle = BorderStyle.FixedSingle;
			this.txtUserGuide.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.txtUserGuide.Location = new System.Drawing.Point(143, 560);
			this.txtUserGuide.Name = "txtUserGuide";
			this.txtUserGuide.ReadOnly = true;
			this.txtUserGuide.Size = new Size(664, 22);
			this.txtUserGuide.TabIndex = 16;
			this.label7.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.label7.AutoSize = true;
			this.label7.BackColor = SystemColors.ActiveCaption;
			this.label7.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label7.Location = new System.Drawing.Point(15, 564);
			this.label7.Name = "label7";
			this.label7.Size = new Size(127, 15);
			this.label7.TabIndex = 563;
			this.label7.Text = "Hướng dẫn sử dụng :";
			this.btnSelect.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnSelect.Cursor = Cursors.Hand;
			this.btnSelect.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnSelect.Location = new System.Drawing.Point(816, 555);
			this.btnSelect.Name = "btnSelect";
			this.btnSelect.Size = new Size(111, 28);
			this.btnSelect.TabIndex = 7;
			this.btnSelect.Text = "Chọn [ F2 ]";
			this.btnSelect.UseVisualStyleBackColor = true;
			this.btnSelect.Click += new EventHandler(this.btnSelect_Click);
			this.txtPatientName.Location = new System.Drawing.Point(420, 18);
			this.txtPatientName.Name = "txtPatientName";
			this.txtPatientName.Size = new Size(351, 21);
			this.txtPatientName.TabIndex = 3;
			this.txtPatientName.TextChanged += new EventHandler(this.txtPatientName_TextChanged);
			this.txtPatientName.KeyPress += new KeyPressEventHandler(this.txtPatientName_KeyPress);
			this.label4.AutoSize = true;
			this.label4.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.label4.Location = new System.Drawing.Point(320, 21);
			this.label4.Name = "label4";
			this.label4.Size = new Size(96, 15);
			this.label4.TabIndex = 566;
			this.label4.Text = "Tên bệnh nhân :";
			this.dataGridViewTextBoxColumn1.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.dataGridViewTextBoxColumn1.DataPropertyName = "ID";
			this.dataGridViewTextBoxColumn1.HeaderText = "Đơn thuốc";
			this.dataGridViewTextBoxColumn1.MinimumWidth = 120;
			this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
			this.dataGridViewTextBoxColumn1.ReadOnly = true;
			this.dataGridViewTextBoxColumn1.Width = 120;
			this.dataGridViewTextBoxColumn2.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.dataGridViewTextBoxColumn2.DataPropertyName = "DateCreate";
			dataGridViewCellStyle3.Format = "D";
			dataGridViewCellStyle3.NullValue = null;
			this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle3;
			this.dataGridViewTextBoxColumn2.HeaderText = "Ngày lập";
			this.dataGridViewTextBoxColumn2.MinimumWidth = 88;
			this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
			this.dataGridViewTextBoxColumn2.ReadOnly = true;
			this.dataGridViewTextBoxColumn2.Width = 88;
			this.dataGridViewTextBoxColumn3.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.dataGridViewTextBoxColumn3.DataPropertyName = "PatientName";
			this.dataGridViewTextBoxColumn3.HeaderText = "Bệnh nhân";
			this.dataGridViewTextBoxColumn3.MinimumWidth = 180;
			this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
			this.dataGridViewTextBoxColumn3.ReadOnly = true;
			this.dataGridViewTextBoxColumn3.Width = 180;
			this.dataGridViewTextBoxColumn4.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.dataGridViewTextBoxColumn4.DataPropertyName = "PatientAge";
			this.dataGridViewTextBoxColumn4.HeaderText = "Tuổi";
			this.dataGridViewTextBoxColumn4.MinimumWidth = 55;
			this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
			this.dataGridViewTextBoxColumn4.ReadOnly = true;
			this.dataGridViewTextBoxColumn4.Width = 55;
			this.dataGridViewTextBoxColumn5.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.dataGridViewTextBoxColumn5.DataPropertyName = "PatientSex";
			this.dataGridViewTextBoxColumn5.HeaderText = "Giới tính";
			this.dataGridViewTextBoxColumn5.MinimumWidth = 80;
			this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
			this.dataGridViewTextBoxColumn5.ReadOnly = true;
			this.dataGridViewTextBoxColumn5.Width = 80;
			this.dataGridViewTextBoxColumn6.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.dataGridViewTextBoxColumn6.DataPropertyName = "PatientAddress";
			this.dataGridViewTextBoxColumn6.HeaderText = "Địa chỉ";
			this.dataGridViewTextBoxColumn6.MinimumWidth = 250;
			this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
			this.dataGridViewTextBoxColumn6.ReadOnly = true;
			this.dataGridViewTextBoxColumn6.Width = 250;
			this.dataGridViewTextBoxColumn7.DataPropertyName = "PatientPhone";
			this.dataGridViewTextBoxColumn7.HeaderText = "Điện thoại";
			this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
			this.dataGridViewTextBoxColumn7.ReadOnly = true;
			this.dataGridViewTextBoxColumn7.Visible = false;
			this.dataGridViewTextBoxColumn8.DataPropertyName = "Printed";
			this.dataGridViewTextBoxColumn8.HeaderText = "Printed";
			this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
			this.dataGridViewTextBoxColumn8.ReadOnly = true;
			this.dataGridViewTextBoxColumn8.Visible = false;
			this.dataGridViewTextBoxColumn9.DataPropertyName = "doctorID";
			this.dataGridViewTextBoxColumn9.HeaderText = "_DoctorID";
			this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
			this.dataGridViewTextBoxColumn9.ReadOnly = true;
			this.dataGridViewTextBoxColumn9.Visible = false;
			this.dataGridViewTextBoxColumn10.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.dataGridViewTextBoxColumn10.DataPropertyName = "DoctorName";
			this.dataGridViewTextBoxColumn10.HeaderText = "Bác sĩ kê đơn";
			this.dataGridViewTextBoxColumn10.MinimumWidth = 180;
			this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
			this.dataGridViewTextBoxColumn10.ReadOnly = true;
			this.dataGridViewTextBoxColumn10.Width = 180;
			this.dataGridViewTextBoxColumn11.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.dataGridViewTextBoxColumn11.DataPropertyName = "Desease";
			this.dataGridViewTextBoxColumn11.HeaderText = "Chuẩn đoán";
			this.dataGridViewTextBoxColumn11.MinimumWidth = 250;
			this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
			this.dataGridViewTextBoxColumn11.ReadOnly = true;
			this.dataGridViewTextBoxColumn11.Width = 250;
			this.dataGridViewTextBoxColumn12.DataPropertyName = "PatientID";
			this.dataGridViewTextBoxColumn12.HeaderText = "Column11";
			this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12";
			this.dataGridViewTextBoxColumn12.ReadOnly = true;
			this.dataGridViewTextBoxColumn12.Visible = false;
			this.dataGridViewTextBoxColumn13.DataPropertyName = "UserGuide";
			this.dataGridViewTextBoxColumn13.HeaderText = "UserGuide";
			this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13";
			this.dataGridViewTextBoxColumn13.ReadOnly = true;
			this.dataGridViewTextBoxColumn13.Visible = false;
			this.dataGridViewTextBoxColumn14.DataPropertyName = "DoctorGuide";
			this.dataGridViewTextBoxColumn14.HeaderText = "DoctorGuide";
			this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14";
			this.dataGridViewTextBoxColumn14.ReadOnly = true;
			this.dataGridViewTextBoxColumn14.Visible = false;
			this.dataGridViewTextBoxColumn15.DataPropertyName = "Status";
			this.dataGridViewTextBoxColumn15.HeaderText = "Status";
			this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15";
			this.dataGridViewTextBoxColumn15.ReadOnly = true;
			this.dataGridViewTextBoxColumn15.Visible = false;
			this.dataGridViewTextBoxColumn16.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.dataGridViewTextBoxColumn16.DataPropertyName = "productName";
			this.dataGridViewTextBoxColumn16.HeaderText = "Sản phẩm";
			this.dataGridViewTextBoxColumn16.MinimumWidth = 208;
			this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16";
			this.dataGridViewTextBoxColumn16.ReadOnly = true;
			this.dataGridViewTextBoxColumn16.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.dataGridViewTextBoxColumn16.Width = 208;
			this.dataGridViewTextBoxColumn17.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.dataGridViewTextBoxColumn17.DataPropertyName = "productUnit";
			this.dataGridViewTextBoxColumn17.HeaderText = "Đơn vị tính";
			this.dataGridViewTextBoxColumn17.MinimumWidth = 110;
			this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17";
			this.dataGridViewTextBoxColumn17.ReadOnly = true;
			this.dataGridViewTextBoxColumn17.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.dataGridViewTextBoxColumn17.Width = 110;
			this.dataGridViewTextBoxColumn18.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.dataGridViewTextBoxColumn18.DataPropertyName = "productNumber";
			dataGridViewCellStyle4.Alignment = DataGridViewContentAlignment.MiddleRight;
			dataGridViewCellStyle4.Format = "N0";
			dataGridViewCellStyle4.NullValue = null;
			this.dataGridViewTextBoxColumn18.DefaultCellStyle = dataGridViewCellStyle4;
			this.dataGridViewTextBoxColumn18.HeaderText = "Số lượng";
			this.dataGridViewTextBoxColumn18.MinimumWidth = 92;
			this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18";
			this.dataGridViewTextBoxColumn18.ReadOnly = true;
			this.dataGridViewTextBoxColumn18.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.dataGridViewTextBoxColumn18.Width = 92;
			this.dataGridViewTextBoxColumn19.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.dataGridViewTextBoxColumn19.DataPropertyName = "ProductID";
			this.dataGridViewTextBoxColumn19.HeaderText = "Mã sản phẩm";
			this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19";
			this.dataGridViewTextBoxColumn19.ReadOnly = true;
			this.dataGridViewTextBoxColumn19.Visible = false;
			this.dataGridViewTextBoxColumn20.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
			this.dataGridViewTextBoxColumn20.DataPropertyName = "ProductGuide";
			this.dataGridViewTextBoxColumn20.HeaderText = "Liều dùng";
			this.dataGridViewTextBoxColumn20.MinimumWidth = 100;
			this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20";
			this.dataGridViewTextBoxColumn20.ReadOnly = true;
			this.productName.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.productName.DataPropertyName = "productName";
			this.productName.HeaderText = "Sản phẩm";
			this.productName.MinimumWidth = 208;
			this.productName.Name = "productName";
			this.productName.ReadOnly = true;
			this.productName.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.productName.Width = 208;
			this.productUnit.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.productUnit.DataPropertyName = "productUnit";
			this.productUnit.HeaderText = "Đơn vị tính";
			this.productUnit.MinimumWidth = 110;
			this.productUnit.Name = "productUnit";
			this.productUnit.ReadOnly = true;
			this.productUnit.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.productUnit.Width = 110;
			this.productNumber.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.productNumber.DataPropertyName = "productNumber";
			dataGridViewCellStyle5.Alignment = DataGridViewContentAlignment.MiddleRight;
			dataGridViewCellStyle5.Format = "N0";
			dataGridViewCellStyle5.NullValue = null;
			this.productNumber.DefaultCellStyle = dataGridViewCellStyle5;
			this.productNumber.HeaderText = "Số lượng";
			this.productNumber.MinimumWidth = 92;
			this.productNumber.Name = "productNumber";
			this.productNumber.ReadOnly = true;
			this.productNumber.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.productNumber.Width = 92;
			this.ProductID.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.ProductID.DataPropertyName = "ProductID";
			this.ProductID.HeaderText = "Mã sản phẩm";
			this.ProductID.Name = "ProductID";
			this.ProductID.ReadOnly = true;
			this.ProductID.Visible = false;
			this.ProductGuide.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
			this.ProductGuide.DataPropertyName = "ProductGuide";
			this.ProductGuide.HeaderText = "Liều dùng";
			this.ProductGuide.MinimumWidth = 100;
			this.ProductGuide.Name = "ProductGuide";
			this.ProductGuide.ReadOnly = true;
			this.billID.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.billID.DataPropertyName = "ID";
			this.billID.HeaderText = "Đơn thuốc";
			this.billID.MinimumWidth = 120;
			this.billID.Name = "billID";
			this.billID.ReadOnly = true;
			this.billID.Width = 120;
			this.DateCreate.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.DateCreate.DataPropertyName = "DateCreate";
			dataGridViewCellStyle6.Format = "D";
			dataGridViewCellStyle6.NullValue = null;
			this.DateCreate.DefaultCellStyle = dataGridViewCellStyle6;
			this.DateCreate.HeaderText = "Ngày lập";
			this.DateCreate.MinimumWidth = 88;
			this.DateCreate.Name = "DateCreate";
			this.DateCreate.ReadOnly = true;
			this.DateCreate.Width = 88;
			this.PatientName.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.PatientName.DataPropertyName = "PatientName";
			this.PatientName.HeaderText = "Bệnh nhân";
			this.PatientName.MinimumWidth = 180;
			this.PatientName.Name = "PatientName";
			this.PatientName.ReadOnly = true;
			this.PatientName.Width = 180;
			this.PatientAge.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.PatientAge.DataPropertyName = "PatientAge";
			this.PatientAge.HeaderText = "Tuổi";
			this.PatientAge.MinimumWidth = 55;
			this.PatientAge.Name = "PatientAge";
			this.PatientAge.ReadOnly = true;
			this.PatientAge.Width = 55;
			this.PatientSex.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.PatientSex.DataPropertyName = "PatientSex";
			this.PatientSex.HeaderText = "Giới tính";
			this.PatientSex.MinimumWidth = 80;
			this.PatientSex.Name = "PatientSex";
			this.PatientSex.ReadOnly = true;
			this.PatientSex.Width = 80;
			this.PatientAddress.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.PatientAddress.DataPropertyName = "PatientAddress";
			this.PatientAddress.HeaderText = "Địa chỉ";
			this.PatientAddress.MinimumWidth = 250;
			this.PatientAddress.Name = "PatientAddress";
			this.PatientAddress.ReadOnly = true;
			this.PatientAddress.Width = 250;
			this.PatientPhone.DataPropertyName = "PatientPhone";
			this.PatientPhone.HeaderText = "Điện thoại";
			this.PatientPhone.Name = "PatientPhone";
			this.PatientPhone.ReadOnly = true;
			this.PatientPhone.Visible = false;
			this.Printed.DataPropertyName = "Printed";
			this.Printed.HeaderText = "Printed";
			this.Printed.Name = "Printed";
			this.Printed.ReadOnly = true;
			this.Printed.Visible = false;
			this.doctorID.DataPropertyName = "doctorID";
			this.doctorID.HeaderText = "_DoctorID";
			this.doctorID.Name = "doctorID";
			this.doctorID.ReadOnly = true;
			this.doctorID.Visible = false;
			this.DoctorName.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.DoctorName.DataPropertyName = "DoctorName";
			this.DoctorName.HeaderText = "Bác sĩ kê đơn";
			this.DoctorName.MinimumWidth = 180;
			this.DoctorName.Name = "DoctorName";
			this.DoctorName.ReadOnly = true;
			this.DoctorName.Width = 180;
			this.Desease.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Desease.DataPropertyName = "Desease";
			this.Desease.HeaderText = "Chuẩn đoán";
			this.Desease.MinimumWidth = 250;
			this.Desease.Name = "Desease";
			this.Desease.ReadOnly = true;
			this.Desease.Width = 250;
			this.PatientID.DataPropertyName = "PatientID";
			this.PatientID.HeaderText = "Column11";
			this.PatientID.Name = "PatientID";
			this.PatientID.ReadOnly = true;
			this.PatientID.Visible = false;
			this.UserGuide.DataPropertyName = "UserGuide";
			this.UserGuide.HeaderText = "UserGuide";
			this.UserGuide.Name = "UserGuide";
			this.UserGuide.ReadOnly = true;
			this.UserGuide.Visible = false;
			this.DoctorGuide.DataPropertyName = "DoctorGuide";
			this.DoctorGuide.HeaderText = "DoctorGuide";
			this.DoctorGuide.Name = "DoctorGuide";
			this.DoctorGuide.ReadOnly = true;
			this.DoctorGuide.Visible = false;
			this.Status.DataPropertyName = "Status";
			this.Status.HeaderText = "Status";
			this.Status.Name = "Status";
			this.Status.ReadOnly = true;
			this.Status.Visible = false;
			base.AutoScaleDimensions = new SizeF(7f, 15f);
			//base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new Size(934, 616);
			base.Controls.Add(this.btnSelect);
			base.Controls.Add(this.dgvProduct);
			base.Controls.Add(this.txtUserGuide);
			base.Controls.Add(this.label7);
			base.Controls.Add(this.txtDoctorGuide);
			base.Controls.Add(this.label9);
			base.Controls.Add(this.groupBox1);
			base.Controls.Add(this.btnClose);
			base.Controls.Add(this.groupBox3);
			base.Controls.Add(this.label26);
			base.Controls.Add(this.dgvBill);
			base.Controls.Add(this.btnAddToBill);
			this.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
			//base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
			//base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
			base.KeyPreview = true;
			this.MaximumSize = new Size(950, 650);
			this.MinimumSize = new Size(950, 650);
			base.Name = "frmSelectPrescription";
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.CenterScreen;
			this.Text = "  ..: CHỌN ĐƠN THUỐC";
			base.Load += new EventHandler(this.frmOutputRetail_Load);
			base.Shown += new EventHandler(this.frmSelectPrescription_Shown);
			base.KeyDown += new KeyEventHandler(this.frmOutputRetail_KeyDown);
			this.groupBox3.ResumeLayout(false);
			this.groupBox3.PerformLayout();
			((ISupportInitialize)this.dgvBill).EndInit();
			((ISupportInitialize)this.dgvProduct).EndInit();
			this.groupBox1.ResumeLayout(false);
			this.groupBox1.PerformLayout();
			((ISupportInitialize)this.txtAge).EndInit();
			base.ResumeLayout(false);
			base.PerformLayout();
		}
	}
}
